<script>
	export default {
		globalData: {
			serviceTel: '',  
		},
		onLaunch: function(options) {
			console.log('App Launch');
			this.$scope.globalData.scene = options.scene; //扫描二维码进入小程序时的环境变量
			uni.setStorageSync("ServiceEnvironment", "PRODUCTION"); //生产环境
			uni.getSystemInfo({
			    success: (e) => {
					uni.setStorageSync("systemInfo", e);
					let custom = uni.getMenuButtonBoundingClientRect(); //胶囊按钮
					let StatusBar = e.statusBarHeight;
					let placeholderWidth = e.screenWidth - custom.right + custom.width;
					let CustomBar = custom.bottom + custom.top - e.statusBarHeight;
					uni.setStorageSync("StatusBar", StatusBar);
					uni.setStorageSync("CustomBar", CustomBar);
					uni.setStorageSync("placeholderWidth", placeholderWidth);
			    },   
			});
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style>
	page {
	    font-family: "苹方-简";
	}
</style>
